package com.caishi.lkx.distribution.api;


import com.caishi.lkx.distribution.service.impl.WeChatSignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/distribute/config")
public class ConfigController {
    private final WeChatSignService weChatSignService;

    public ConfigController(WeChatSignService weChatSignService) {
        this.weChatSignService = weChatSignService;
    }

    @GetMapping
    public Map<String, Object> getConfig() throws Exception {

        return weChatSignService.getWxConfigSign("https://sub.zzwx.cn");


    }
}
